package com.gzhryc.shared_device.oem.code.config.dao.enums;

public class FuncModelEnum {
	
	public static enum Type {

		Agent(1, "代理")			//与ERoleType的Agent枚举Index保持一致
		, Partner(3, "合伙人")	//与ERoleType的Partner枚举Index保持一致
		, Dealer(98, "经销商");	//与AgentRelationEnum.RoleType的Dealer枚举Index保持一致

        private Integer index;
        private String note;

        Type(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
        	Type[] temp = Type.values();
            for (int i = 0; i < temp.length; i++) {
            	Type item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }

    public static enum State {

        Default(1, "默认"),Choose(2, "选配");

        private Integer index;
        private String note;

        State(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            State[] temp = State.values();
            for (int i = 0; i < temp.length; i++) {
                State item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }
}
